define(['app'], function(app) {
	'use strict';

	var controller = function controller($scope, Sendredpocket, $window, $timeout, GoPage) {
		$scope.isLoad = false; //可以加载
		//画面加载
		$scope.$on('$ionicView.afterEnter', function() {

			console.info(22222)

			//动态设置高度
			var all = $window.innerHeight;
			//计算滚动条
			$scope.myObj = {
				"height": all - 44 - 0 + "px"
			};
		}, false);


		Sendredpocket.get_list(function(data) {
			$scope.detail1 = data;
			$scope.detail2 = data;
		});


	}

	controller.$inject = ['$scope', 'Sendredpocket', '$window', '$timeout', 'GoPage'];
	
	return app.registerController("sendredpocketctrl",controller);
});